from flask import Flask
from apps import create_app
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from ext import db

app = create_app()
manager = Manager(app=app)


# 命令工具
migrate = Migrate(app=app, db=db)
manager.add_command('db', MigrateCommand)


# @app.route('/')
# def hello_world():
#     re。turn 'Hello World!'


if __name__ == '__main__':
    manager.run()
